@extends('admin/layout')
@section('title','品牌管理')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    品牌编辑
    
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
    <li><i class="fa fa-users"></i> 品牌管理</li>
    <li><a href="{{asset('admin/member')}}"><i class="fa fa-user"></i> 品牌列表</a></li>
    <li class="active">品牌编辑</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
	<div class="row">
		<div class="col-md-12">
	  	  <!-- box start -->
          <div class="box box-info">
          @if(session('error'))
            <div class="alert alert-danger">
                {{session('error')}}
            </div>
          @endif
	        <div class="box-header 
          with-border">
	          <h3 class="box-title"><i class="fa fa-user-plus">品牌编辑</i></h3>
	        </div>
            <!-- form start -->
            <form class="form-horizontal" action="{{asset('admin/classify/brandupdate')}}" method="post" enctype="multipart/form-data">
              {{csrf_field()}}
              <input type="hidden" name="brand_id" value="{{$data -> brand_id}}">
              <input type="hidden" name="old_logo" value="{{$data -> brand_logo}}">
              <div class="box-body">
                <div class="form-group">
                  <label for="inputname" class="col-sm-2 col-md-2 control-label">品牌名称：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" id="inputname" name="brand_name_zh" value="{{$data -> brand_name_zh}}" placeholder="请输入品牌名称">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  <i class="fa fa-check text-green"></i>
                  </span>
                </div>
                <div class="form-group">
                  <label for="inputpasspword" class="col-sm-2 col-md-2 control-label">英文名称：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" id="inputpassword" name="brand_name_en" value="{{$data->brand_name_en}}" placeholder="请输入品牌英文名称">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  
                  </span>
                </div>
                
               
                <div class="form-group">
                  <label for="inputemail" class="col-sm-2 col-md-2 control-label">brand_pro_code：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" id="inputemail" name="brand_pro_code" value="{{$data->brand_pro_code}}" placeholder="请输入品牌英文名称前两个大写字母">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  <i class="fa fa-check text-green"></i>
                  </span>
                </div>

                <div class="form-group">
                  <label for="inputpic" class="col-sm-2 col-md-2 control-label">上传品牌Logo：</label>
                  <div class="col-sm-10 col-md-10">
                    <img style="width:100px;" src="/uploads/product/brand/{{$data->brand_logo}}">
                  </div>
                  <span class="help-block col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2">
                  </span>
                </div>
                <div class="form-group">
                  <label for="inputpic" class="col-sm-2 col-md-2 control-label"></label>
                  <div class="col-sm-10 col-md-10">
                    <input type="file" class="" id="inputpic" name="brand_logo">
                  </div>
                  <span class="help-block col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2">
                  </span>
                </div>

              <div class="box-footer">
                <button type="reset" class="btn btn-default col-sm-2 col-sm-offset-2 col-md-2 col-md-offset-2">还原</button>
                <button class="btn btn-info col-xs-offset-1 col-sm-2 col-sm-offset-1 col-md-2 col-md-offset-1">提交</button>
              </div>
            </form>
            <!-- /.form -->
          </div>
          <!-- /.box -->
	    </div>
    </div>
</section>
<!-- /.content -->
@stop